<?PHP
include("cnnxn.php");
connect();

$response='';
$SQLls='SELECT * FROM Players WHERE FirstName LIKE "'.$_GET['q'].'%" ORDER BY FirstName ASC;';
$sendls=mysqli_query($db,$SQLls) or die(mysqli_error($db));
while ($RSls=mysqli_fetch_object($sendls)) {
	$response=$response.$RSls->FirstName.' '.$RSls->LastName.'<br />';
}
if ($response!='') {
	echo $response;
} else {
	echo 'no matches';
}
mysqli_close($db);
?>
